package com.gec.wiki.pojo.req;

import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class DocSaveReq extends PageReq {

    private Integer id;
    @NotNull(message = "[电子书]不能为空")
    private Long ebookId;
    @NotNull(message = "[父文档]不能为空")
    private Long parent;
    @NotNull(message = "[名称]不能为空")
    private String name;
    @NotNull(message = "[排序]不能为空")
    private Integer sort;

    private Integer viewCount;

    private Integer voteCount;
    @NotNull(message = "[内容]不能为空")
    private String content;
}
